<?php if((isset($_SESSION['sys_admin']))||(isset($_SESSION['admin']))||(isset($_SESSION['intern_audit']))||(isset($_SESSION['second_consult']))||(isset($_SESSION['dept_pic']))) {?>
<div class="advanced-search">
<div class="advanced-search-atas">Advanced Search</div>
<div class="advanced-search-tengah">
<form action="<?php echo site_url();?>/search/search/show_advanced_search" method="post">

<p>
	<label>Search TicketID</label>
	<input type="text" name="ticket_id" />
</p>
<br />
<!--
<p>
	<label>Date Range</label>
	<select name="open_datetime">
	<option></option>
	<?php
		//foreach($ticket->result() as $silvi) {
	?>
	<option value="<?php //echo// $silvi->open_datetime;?>"><?php //echo// $silvi->open_datetime;?></option>
	<?php //} ?>
	</select>
</p>-->
<br />
<p>
	<label>Severity</label>
	<select name="severity_level">
		<option></option>
		<option value="Critical">Critical</option>
		<option value="High">High</option>
		<option value="Medium">Medium</option>
		<option value="Low">Low</option>
	</select>
	
</p>
<br />
<p>
	<label>Title</label>
	<input type="text" name="title" />
</p>
<br />
<p>
	<label>Product</label>
	<select name="prod_id">
	<option></option>
	<?php
		foreach($prod->result() as $silvi) {
	?>
	<option value="<?php echo $silvi->product;?>"><?php echo $silvi->product;?></option>
	<?php } ?>
	</select>
</p>
<br />
<p>
	<label>&nbsp;</label>
	<input type="submit" value="Search">&nbsp;&nbsp;<input type="reset" value="Cancel">
</p>
</form>
</div>
<div class="advanced-search-bawah"></div>
</div>
<?php } ?>